<template>
  <div class="server-box">
    <div class="graphic">
      <h2>更多服务</h2>
      <ul class="gra">
        <li v-for="ser in ss" :key="ser.id">
          <div :style="ser.bgcolor">
            <span
              class="iconfont"
              :class="ser.iconName"
              :style="ser.color"
            ></span>
          </div>
          <p>{{ ser.name }}</p>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import getlink from "../../apis/getapi";
export default {
  data() {
    return {
      ss: [],
    };
    // console.log(this.arr);
  },
  created() {
    getlink("/data/one").then((ok) => {
      //   console.log(ok);
      this.ss = ok.data.server;
      // console.log(this.arr);
    });
    // console.log(this.arr);
  },
};
</script>

<style scoped>
.server-box {
  width: 100%;
  height: 3.2rem;
  box-sizing: border-box;
}
.graphic {
  width: 3.3rem;
  height: 100%;
  background-color: white;
  margin: auto;
  border-radius: 0.12rem;
}
h2 {
  width: 100%;
  height: 0.2rem;
  font-size: 0.18rem;
  padding: 0.25rem 0 0.03rem 0.17rem;
}
.gra {
  width: 100%;
  height: 1.7rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
/* ul {
  margin-bottom: 0.2rem;
} */
.gra li {
  width: 25%;
  text-align: center;
  margin-top: 0.4rem;
}
.gra li div {
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 100%;
  line-height: 0.35rem;
  margin-bottom: 0.1rem;
  text-align: center;
}
.gra li p {
  width: 100%;
  font-size: 0.15rem;
}
.iconfont {
  font-size: 0.19rem;
}
</style>

